package com.xx.eshop.service;

import java.util.List;
import java.util.Map;

import com.xx.eshop.entity.Attr;
import com.xx.eshop.entity.AttrValue;

public interface AttrService {
	
	public void update(Attr attr);
	
	public void delete(int id);
	
	public void save(Attr attr);
	
	public List<Attr> findByCategory(int cid);
	
	public List<AttrValue> findByAttr(int aid);
	

	public List<Attr> findByCategoryFetch(int cid);
	
	public Attr findOne(int id);

	public Attr updateSort(int attrId, int attrSort);

}
